package io.gitee.yxsnake.framework.system.api;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import io.gitee.yxsnake.framework.core.domain.Result;
import io.gitee.yxsnake.framework.system.api.domain.vo.RemoteTenantVo;
import retrofit2.http.GET;
import retrofit2.http.Query;

import java.util.List;

/**
 * @author snake
 * @description 租户服务
 * @since 2024/11/2 23:07
 */
@RetrofitClient(baseUrl = "${retrofit.pisces-system-server:http://pisces-system-server:21001/}")
public interface RemoteTenantService {

    /**
     * 根据租户id获取租户详情
     * @param tenantId 租户id
     * @return 结果
     */
    @GET(value = "inner/tenant/queryByTenantId")
    Result<RemoteTenantVo> queryByTenantId(@Query("tenantId") String tenantId);

    /**
     * 获取租户列表
     * @return 结果
     */
    @GET(value = "inner/tenant/queryList")
    Result<List<RemoteTenantVo>> queryList();

}
